Benjamin Otte [Sun, 3 Oct 2021 04:22:21 +0000 (06:22 +0200)]
egl: Move initialization code and port Wayland
Moves the EGL initialization code to gdk/ so it can be shared between
backends.
Also port the Wayland backend to this code, so I know that it works.
Benjamin Otte [Tue, 5 Oct 2021 02:14:57 +0000 (04:14 +0200)]
build: Add a HAVE_EGL define to config.h
Benjamin Otte [Fri, 24 Sep 2021 17:43:15 +0000 (19:43 +0200)]
surface: Use g_clear_thing()
Benjamin Otte [Thu, 23 Sep 2021 01:49:59 +0000 (03:49 +0200)]
widget-factory: Name the images pages
Benjamin Otte [Sat, 2 Oct 2021 03:21:29 +0000 (05:21 +0200)]
gdk: Make GDK_DEBUG GL backend selection global
We have a global GdkGLBackendType now, just set it.
This way, using the variable forces the backend type, and we don't need
special code handling the env vars in the backends.
It also means setting the env var will now "work" on GDK backends that
don't even support that GL backend and simualte another GDK backend
having registered that GL backend already. So you can run
GDK_DEBUG=gl-wgl gtk4-demo
on test what Wayland will do when WGL is in use.
Benjamin Otte [Mon, 4 Oct 2021 00:45:03 +0000 (02:45 +0200)]
pathbar: Use correct marshaler
Recent changes to types didn't update the marshaler. Oops.
Benjamin Otte [Mon, 4 Oct 2021 02:26:10 +0000 (04:26 +0200)]
win32: Remove unused variables
Benjamin Otte [Mon, 4 Oct 2021 02:24:54 +0000 (04:24 +0200)]
win32: Comment out unused function
Matthias Clasen [Sun, 3 Oct 2021 19:04:00 +0000 (19:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
contentdeserializer: Plug a small memleak
See merge request GNOME/gtk!4026
Matthias Clasen [Sun, 3 Oct 2021 18:51:03 +0000 (14:51 -0400)]
contentdeserializer: Plug a small memleak
Found by asan in ci. We intern the mimetypes
when they are registered, so there is no need
to leak this string.
Matthias Clasen [Sun, 3 Oct 2021 18:33:12 +0000 (18:33 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
ngl: Small docs updates
See merge request GNOME/gtk!4025
Matthias Clasen [Sun, 3 Oct 2021 17:43:15 +0000 (13:43 -0400)]
ngl: Don't cache large glyphs forever
We never put large icons into the icon cache,
so all its items are always atlased, but we do
put large glyphs in to the glyph cache, and we
were never freeing those items, even when they
go unused. Fix that.
Matthias Clasen [Sun, 3 Oct 2021 15:36:19 +0000 (15:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
ngl: Drop the texture pool object
See merge request GNOME/gtk!4024
Matthias Clasen [Sun, 3 Oct 2021 15:08:46 +0000 (11:08 -0400)]
ngl: Small docs updates
Don't refer to nonexisting functions.
Anders Jonsson [Sun, 3 Oct 2021 14:16:58 +0000 (14:16 +0000)]
Update Swedish translation
Matthias Clasen [Sun, 3 Oct 2021 06:16:56 +0000 (02:16 -0400)]
ngl: Plug a memory leak
When creating a GdkTexture from the texture
stored in the driver, we must free the GskNglTexture
struct.
Matthias Clasen [Sun, 3 Oct 2021 05:54:41 +0000 (01:54 -0400)]
ngl: Drop the texture pool object
This wasn't serving any clear purpose.
Matthias Clasen [Sun, 3 Oct 2021 05:59:28 +0000 (05:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Revert "Add GtkLoader to gtk4-widget-factory"
See merge request GNOME/gtk!4023
Matthias Clasen [Sun, 3 Oct 2021 05:13:36 +0000 (01:13 -0400)]
ngl: Cosmetics
Move _GskNglTextureState to the one place it is used.
Matthias Clasen [Sun, 3 Oct 2021 03:54:06 +0000 (23:54 -0400)]
Revert "Add GtkLoader to gtk4-widget-factory"
This reverts commit
923c944abb6b5305c4f0adda3d20e9abb6381c8a.
This commit broke the image dnd, and the async
loading isn't that important here.
Matthias Clasen [Sat, 2 Oct 2021 16:03:46 +0000 (16:03 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
build: Print toolchain in summary
See merge request GNOME/gtk!4022
Timm Bäder [Sun, 19 Sep 2021 09:00:07 +0000 (11:00 +0200)]
gdk loaders: Add noreturn attribtues where appropriate
Timm Bäder [Sun, 19 Sep 2021 08:52:36 +0000 (10:52 +0200)]
build: Print toolchain in summary
Would be nice to print CFLAGS and LDFLAGS as well, but that's not as
easy.
Matthias Clasen [Sat, 2 Oct 2021 01:14:35 +0000 (21:14 -0400)]
x11: Better debug for egl
Print the extensions one per line, and sort them
alphabetically, so it is actually possible to find
something in the list.
Also print a short description of the chosen config.
Matthias Clasen [Sat, 2 Oct 2021 02:16:42 +0000 (02:16 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Fix the build
See merge request GNOME/gtk!4021
Matthias Clasen [Fri, 1 Oct 2021 15:15:12 +0000 (11:15 -0400)]
wayland: better debug for egl
Print the extensions one per line, and sort them
alphabetically, so it is actually possible to find
something in the list.
Also print a short description of the chosen config.
Matthias Clasen [Fri, 1 Oct 2021 16:56:05 +0000 (12:56 -0400)]
Fix the build
I messed this up when I changed how we build resources.
Matthias Clasen [Fri, 1 Oct 2021 03:48:46 +0000 (03:48 +0000)]
Merge branch 'ebassi/getting-started-links' into 'master'
docs: Fix links in the Getting Started page
See merge request GNOME/gtk!4018
Matthias Clasen [Fri, 1 Oct 2021 03:45:33 +0000 (23:45 -0400)]
Fix an oversight
Matthias Clasen [Fri, 1 Oct 2021 02:55:31 +0000 (22:55 -0400)]
gtk: Speed up build
Avoid serializing the gresource blob into a C string
and running gcc over it. Instead, use ld to put it
directly into an .o file and add it to the build.
The build system machinations here were copied from
gobject/tests/meson.build, and should ideally be part
of the meson gnome module.
Matthias Clasen [Fri, 1 Oct 2021 02:47:00 +0000 (22:47 -0400)]
gtk-demo: Speed up the build
Avoid serializing the gresource blob into a C string
and running gcc over it. Instead, use ld to put it
directly into an .o file and add it to the build.
The build system machinations here were copied from
gobject/tests/meson.build, and should ideally be part
of the meson gnome module.
Matthias Clasen [Fri, 1 Oct 2021 02:41:36 +0000 (22:41 -0400)]
widget-factory: Speed up build
Avoid serializing the gresource blob into a C string
and running gcc over it. Instead, use ld to put it
directly into an .o file and add it to the build.
The build system machinations here were copied from
gobject/tests/meson.build, and should ideally be part
of the meson gnome module.
Benjamin Otte [Fri, 1 Oct 2021 02:49:11 +0000 (02:49 +0000)]
Merge branch 'otte/for-master2' into 'master'
docs: Add note about stable sorting to SortListModel
See merge request GNOME/gtk!4017
Emmanuele Bassi [Fri, 1 Oct 2021 00:44:01 +0000 (01:44 +0100)]
docs: Fix links in the Getting Started page
We still have links to old gtk-doc references, as well as links to
developer.gnome.org locations that don't exist any more. On the other
hand, we are missing a bunch of links to existing types and symbols.
Benjamin Otte [Fri, 1 Oct 2021 00:31:51 +0000 (00:31 +0000)]
docs: Add note about stable sorting to SortListModel
Matthias Clasen [Fri, 1 Oct 2021 00:29:40 +0000 (00:29 +0000)]
Merge branch 'fix-wgl-cairo-fallback' into 'master'
Apply MR !3964 to master (fix WGL->Cairo fallback-related items)
Closes #4257
See merge request GNOME/gtk!3987
Matthias Clasen [Fri, 1 Oct 2021 00:27:41 +0000 (00:27 +0000)]
Merge branch 'dab_fix_libtiff_install' into 'master'
libtiff: update meson patch to install the lib
See merge request GNOME/gtk!4014
Matthias Clasen [Fri, 1 Oct 2021 00:27:16 +0000 (00:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
widget-factory: Use the same gtk-logo.webm
See merge request GNOME/gtk!4015
Matthias Clasen [Fri, 1 Oct 2021 00:26:59 +0000 (00:26 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
testsuite: Actually run all memorytexture tests
See merge request GNOME/gtk!4016
Benjamin Otte [Thu, 30 Sep 2021 23:14:51 +0000 (01:14 +0200)]
widget-factory: Copy alpha-corrected logo webm from gtk-demo
I want beautiful content please.
I'd also like to see when transparency suddenly starts working.
Matthias Clasen [Thu, 30 Sep 2021 18:50:31 +0000 (14:50 -0400)]
widget-factory: Use the same gtk-logo.webm
Use the same animated GTK logo as in gtk4-demo.
That version has a transparent background, so
it is preferrable.
Stéphane Cerveau [Thu, 30 Sep 2021 13:59:17 +0000 (15:59 +0200)]
libtiff: update meson patch to install the lib
see https://github.com/mesonbuild/wrapdb/pull/171
Daniel Șerbănescu [Thu, 30 Sep 2021 12:40:26 +0000 (12:40 +0000)]
Update Romanian translation
(cherry picked from commit
dc7782378700bfe0c0f224a890cf8ecde7b1c637)
Matthias Clasen [Thu, 30 Sep 2021 12:30:08 +0000 (12:30 +0000)]
Merge branch 'master-msvc-fixes' into 'master'
Fix GIT master build on Visual Studio 2015
See merge request GNOME/gtk!4010
Chun-wei Fan [Thu, 30 Sep 2021 08:17:48 +0000 (16:17 +0800)]
meson: Improve search for libpng
On Visual Studio-style builds, it is likely that we do not have pkg-config
files for libpng, so improve the search for libpng by using CMake's built-in
mechanisms for looking for libpng. This, however, means that we need to use
'png' rather than 'libpng' for the package name to search for.
Chun-wei Fan [Wed, 29 Sep 2021 02:42:55 +0000 (10:42 +0800)]
fp16.c: Fix float_to_half() function call
Correct the function being called.
Chun-wei Fan [Wed, 29 Sep 2021 02:40:56 +0000 (10:40 +0800)]
GDK-Win32: Fix build
Include the appropriate headers as some function prototypes were moved lately.
Also, re-order the include order of the gdk/*private.h headers alphabetically
in the files that were updated.
Matthias Clasen [Wed, 29 Sep 2021 15:37:29 +0000 (15:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gtk-builder-tool: Simplify <style>
See merge request GNOME/gtk!4009
Matthias Clasen [Wed, 29 Sep 2021 03:04:56 +0000 (23:04 -0400)]
a11y: Simplify atspi context a bit
We don't really need a bus-address property
that gets copied for every single object.
We keep the address in object data on the
display anyway. Just use it from there.
This gets rid of a nice amount of strdups
at startup.
Matthias Clasen [Wed, 29 Sep 2021 13:28:09 +0000 (09:28 -0400)]
Simplify our ui files
Run gtk4-builder-tool simplify over our ui files,
we simplify some more things now.
Matthias Clasen [Wed, 29 Sep 2021 11:48:33 +0000 (07:48 -0400)]
buildertool: Fix a simplify issue
<lookup> elements can contain a type name, we can't just
ignore the pcdata content. This was breaking some of our
ui files when simplifying them.
Matthias Clasen [Wed, 29 Sep 2021 01:58:29 +0000 (21:58 -0400)]
gtk-builder-tool: Simplify more
Simplify enum properties as well.
Update affected tests.
Yuri Chornoivan [Wed, 29 Sep 2021 12:51:56 +0000 (12:51 +0000)]
Update Ukrainian translation
Sveinn í Felli [Wed, 29 Sep 2021 12:04:41 +0000 (12:04 +0000)]
Update Icelandic translation
(cherry picked from commit
4e08ec0ea1ce98aee34e7a70fc6e9dd2a52b6067)
Yuri Chornoivan [Wed, 29 Sep 2021 11:35:43 +0000 (11:35 +0000)]
Update Ukrainian translation
Kukuh Syafaat [Wed, 29 Sep 2021 05:57:08 +0000 (05:57 +0000)]
Update Indonesian translation
(cherry picked from commit
cc70eaca933454f3d8541bf20b0f3f3c1438770c)
Matthias Clasen [Wed, 29 Sep 2021 01:22:35 +0000 (01:22 +0000)]
Merge branch 'wip/chergert/fix-4279' into 'master'
macos: handle NULL surface when creating GL context
Closes #4279
See merge request GNOME/gtk!4008
Christian Hergert [Wed, 29 Sep 2021 00:36:23 +0000 (17:36 -0700)]
macos: handle NULL surface when creating GL context
Fixes #4279
Matthias Clasen [Tue, 28 Sep 2021 22:24:13 +0000 (22:24 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
builder: Simplify parameter collection
See merge request GNOME/gtk!4006
Matthias Clasen [Tue, 28 Sep 2021 19:59:24 +0000 (15:59 -0400)]
builder-tool: Avoid <style> when converting
We can just set the css-classes property instead.
Update affected tests.
Matthias Clasen [Tue, 28 Sep 2021 20:59:22 +0000 (16:59 -0400)]
builder: Simplify parameter collection
This avoids setting the GValue only to toss it at the
end of the loop body. Instead, we can just do nothing
if this property isn't interesting to us.
Yaron Shahrabani [Tue, 28 Sep 2021 20:27:52 +0000 (20:27 +0000)]
Update Hebrew translation
(cherry picked from commit
e230579149d4724e3d668c543c3ba8ef08eb1a7d)
Matthias Clasen [Tue, 28 Sep 2021 20:24:16 +0000 (20:24 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
entry: Clarify docs
See merge request GNOME/gtk!4005
Matthias Clasen [Tue, 28 Sep 2021 19:47:06 +0000 (15:47 -0400)]
docs: Mention popovers in the migration guide
Things have changed around popovers, we should mention
that.
Matthias Clasen [Tue, 28 Sep 2021 19:40:41 +0000 (15:40 -0400)]
entry: Clarify docs
Mention that max length is in characters.
Matthias Clasen [Tue, 28 Sep 2021 19:39:57 +0000 (19:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Fix the build
See merge request GNOME/gtk!4004
Matthias Clasen [Tue, 28 Sep 2021 19:38:30 +0000 (19:38 +0000)]
Merge branch 'builder-binding-ordering' into 'master'
builder: Fix handling of `<binding>`
Closes #4147
See merge request GNOME/gtk!4003
Matthias Clasen [Tue, 28 Sep 2021 12:25:00 +0000 (08:25 -0400)]
Fix the build
gcc was complaining here with -Werror=return-type.
Matthias Clasen [Tue, 28 Sep 2021 17:47:15 +0000 (13:47 -0400)]
builder: Fix handling of <binding>
We were only applying <binding> elements when the
object is constructed, which can be triggered by
various things (e.g. a <style> element). Defer
this until we reach </object>, so we can be sure
that we pick up all the bindings.
Testcase included.
Fixes: #4147
Matthias Clasen [Tue, 28 Sep 2021 04:32:30 +0000 (04:32 +0000)]
Merge branch 'fix-builder-parsing' into 'master'
builder: Fix parsing of mixed declarations
Closes #4208
See merge request GNOME/gtk!3997
Benjamin Otte [Mon, 27 Sep 2021 23:23:36 +0000 (23:23 +0000)]
Merge branch 'wip/lantw/GDK-Win32-Use-lowercase-windows.h' into 'master'
GDK/Win32: Use lowercase windows.h
See merge request GNOME/gtk!4000
Matthias Clasen [Mon, 27 Sep 2021 23:16:29 +0000 (23:16 +0000)]
Merge branch 'builder-leaks' into 'master'
builder: Don't leak refs
See merge request GNOME/gtk!4001
Emmanuele Bassi [Mon, 27 Sep 2021 22:32:00 +0000 (22:32 +0000)]
Merge branch 'btj-master-patch-30099' into 'master'
ConstraintGuide getters: annotate out parameters as such
See merge request GNOME/gtk!4002
Matthias Clasen [Fri, 24 Sep 2021 20:34:48 +0000 (16:34 -0400)]
builder: Fix parsing of mixed declarations
The GtkBuilder parser constructs the object e.g.
when handling a <binding> element. There may be
more <property> elements after it, which we were
just not applying. Fix that by always applying
property when we see </object>. To do that, we
need to track the applied status per property.
Test included.
Fixes: #4208
Matthias Clasen [Mon, 27 Sep 2021 16:57:47 +0000 (12:57 -0400)]
builder: Consistently use builder_construct
It seems odd to use this helper in one place,
but not the other.
Matthias Clasen [Mon, 27 Sep 2021 21:17:06 +0000 (17:17 -0400)]
Add an assertion and comment
Maybe it helps the person unfortunate enough
to stumble in here.
Bart Jacobs [Mon, 27 Sep 2021 21:23:45 +0000 (21:23 +0000)]
ConstraintGuide getters: annotate out parameters as such
Matthias Clasen [Mon, 27 Sep 2021 20:40:29 +0000 (16:40 -0400)]
coloreditor: Don't unref unless we own it
Calling gtk_widget_class_bind_template_child does
*not* give you a reference that you need to unref.
It manages the reference for you. So calling
g_clear_object on such a member is wrong.
Matthias Clasen [Mon, 27 Sep 2021 20:38:32 +0000 (16:38 -0400)]
builder: Don't leak refs
We sometimes end up setting an object on a GValue
that we are then not interested in. We need to
unset it, or we'll leak the ref.
Matthias Clasen [Mon, 27 Sep 2021 14:48:58 +0000 (14:48 +0000)]
Merge branch 'wip/lantw/broadway-Use-the-correct-way-to-call-find_library' into 'master'
broadway: Use the correct way to call find_library
See merge request GNOME/gtk!3999
Hugo Carvalho [Sun, 26 Sep 2021 19:58:52 +0000 (19:58 +0000)]
Update Portuguese translation
(cherry picked from commit
73861c11781a0dddfb5b85e7e00dfd26d2225323)
Piotr Drąg [Sun, 26 Sep 2021 15:22:36 +0000 (17:22 +0200)]
Update Polish translation
Aurimas Černius [Sun, 26 Sep 2021 14:22:51 +0000 (17:22 +0300)]
Updated Lithuanian translation
Ting-Wei Lan [Sun, 26 Sep 2021 10:47:18 +0000 (18:47 +0800)]
GDK/Win32: Use lowercase windows.h
Fix build on case-sensitive file systems, so it can be cross-compiled
from Linux with MinGW.
Emin Tufan Çetin [Sun, 26 Sep 2021 12:23:27 +0000 (12:23 +0000)]
Update Turkish translation
Ting-Wei Lan [Sun, 26 Sep 2021 09:47:33 +0000 (17:47 +0800)]
broadway: Use the correct way to call find_library
While broadway currently doesn't build on Windows, it is still better to
avoid using the old and unsupported way to call find_library.
Benjamin Otte [Wed, 22 Sep 2021 19:46:47 +0000 (21:46 +0200)]
testsuite: Actually run all memorytexture tests
Whoops
Benjamin Otte [Sun, 26 Sep 2021 04:05:42 +0000 (06:05 +0200)]
build: Fix build with sysprof-capture but without sysprof
Мирослав Николић [Sun, 26 Sep 2021 05:51:31 +0000 (05:51 +0000)]
Update Serbian translation
(cherry picked from commit
1a70c49acd7f43e3c5f67b112c03bbe75cfbc135)
Мирослав Николић [Sun, 26 Sep 2021 05:33:02 +0000 (05:33 +0000)]
Update Serbian translation
(cherry picked from commit
ea633095121e80c6a692ed474beff4dffa57fc2f)
Rafael Fontenelle [Sat, 25 Sep 2021 13:57:40 +0000 (13:57 +0000)]
Update Brazilian Portuguese translation
(cherry picked from commit
df0f886e77edc7062aab2d41b2abeb96d9792558)
Danial Behzadi [Sat, 25 Sep 2021 10:25:05 +0000 (10:25 +0000)]
Update Persian translation
Matthias Clasen [Fri, 24 Sep 2021 22:03:13 +0000 (22:03 +0000)]
Merge branch 'ebassi/rst-man' into 'master'
Switch man pages to reStructuredFormat
See merge request GNOME/gtk!3995
Benjamin Otte [Fri, 24 Sep 2021 21:46:20 +0000 (21:46 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
win32: Fix GTK warnings
See merge request GNOME/gtk!3998
Benjamin Otte [Fri, 24 Sep 2021 21:18:15 +0000 (23:18 +0200)]
win32: Fix GTK warnings
Benjamin Otte [Fri, 24 Sep 2021 21:16:55 +0000 (21:16 +0000)]
Merge branch 'wip/otte/gdk-headers' into 'master'
Clean up GDK headers
See merge request GNOME/gtk!3996
Benjamin Otte [Fri, 24 Sep 2021 19:11:00 +0000 (21:11 +0200)]
gdk: Remove gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:49:38 +0000 (21:49 +0200)]
wayland: Don't include gdkinternals.h
Benjamin Otte [Fri, 24 Sep 2021 19:22:12 +0000 (21:22 +0200)]
win32: Fix gcc warnings
Benjamin Otte [Fri, 24 Sep 2021 19:20:15 +0000 (21:20 +0200)]
x11: Don't include gdkinternals.h